<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="sp.faq.faqlist.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

</head>

<body><%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/serviceprovider/faq/faq_menu.jsp" />
		</td>
	</tr>
	<tr>
		<td align="center">
		<h2><spring:message code="sp.faq.faqlist.label.faq" /></h2>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>

<c:if test="${not empty listFaqs.pageItems}">
	<table class="formTable" width="80%" cellspacing="0">
		<tr class="ui-state-default">
			<c:if test="${listFaqs.pageNumber>1}">
				<td align="left"><a
					href="list_faq.htm?pageNo=${listFaqs.pageNumber-1}&sortColumn=${listFaqs.sortColumn}"
					class="mouseEffect"><span class="ui-icon ui-icon-seek-prev"
					style="float: left;"></span><spring:message code="sp.faq.faqlist.button.previouspage" /></a></td>
			</c:if>
			<c:if test="${listFaqs.pageNumber<listFaqs.pagesAvailable}">
				<td align="right"><a
					href="list_faq.htm?pageNo=${listFaqs.pageNumber+1}&sortColumn=${listFaqs.sortColumn}"
					class="mouseEffect"><span class="ui-icon ui-icon-seek-next"
					style="float: right;"></span><spring:message code="sp.faq.faqlist.button.nextpage" /></a></td>
			</c:if>
		</tr>
	</table>
	<table class="formTable" width="80%">
		<tr class="formHeader">
			<td colspan="9"><spring:message code="sp.faq.faqlist.label.listoffaq" /></td>
		</tr>
		<tr class="formSubHeader">
			<th>#</th>
			<th><a	href="list_faq.htm?pageNo=${listFaqs.pageNumber}&sortColumn=question&sortOrder=${listFaqs.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listFaqs.sortOrder}"><spring:message code="sp.faq.faqlist.label.question" /></a></th>
			<th><a	href="list_faq.htm?pageNo=${listFaqs.pageNumber}&sortColumn=answer&sortOrder=${listFaqs.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listFaqs.sortOrder}"><spring:message code="sp.faq.faqlist.label.answer" /></a></th>
			<th><a	href="list_faq.htm?pageNo=${listFaqs.pageNumber}&sortColumn=tag&sortOrder=${listFaqs.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listFaqs.sortOrder}"><spring:message code="sp.faq.faqlist.label.tag" /></a></th>
			<th><a	href="list_faq.htm?pageNo=${listFaqs.pageNumber}&sortColumn=updated&sortOrder=${listFaqs.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listFaqs.sortOrder}"><spring:message code="sp.faq.faqlist.label.lastupdated" /></a></th>
		</tr>
		<c:forEach var="faq" items="${listFaqs.pageItems}" varStatus="i">
			<tr class="tr_record">
				<td align="left">
				${i.count+(listFaqs.recordSize*(listFaqs.pageNumber-1))}</td>
				<td><a href="view_faq.htm?id=${faq.id}"><span title="${faq.questionFull}">${faq.question}</span></a></td>
				<td><span title="${faq.answerFull}">${faq.answer}</span></td>
				<td><span title="${faq.tagFull}">${faq.tag}</span></td>
				<td>${faq.updatedDatetime}</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:forEach>
	</table>
	<table class="formTable" width="80%" cellspacing="0">
		<tr class="ui-state-default">
			<c:if test="${listFaqs.pageNumber>1}">
				<td align="left"><a
					href="list_faq.htm?pageNo=${listFaqs.pageNumber-1}&sortColumn=${listFaqs.sortColumn}"
					class="mouseEffect"><span class="ui-icon ui-icon-seek-prev"
					style="float: left;"></span><spring:message code="sp.faq.faqlist.button.previouspage" /></a></td>
			</c:if>
			<c:if test="${listFaqs.pageNumber<listFaqs.pagesAvailable}">
				<td align="right"><a
					href="list_faq.htm?pageNo=${listFaqs.pageNumber+1}&sortColumn=${listFaqs.sortColumn}"
					class="mouseEffect"><span class="ui-icon ui-icon-seek-next"
					style="float: right;"></span><spring:message code="sp.faq.faqlist.button.nextpage" /></a></td>
			</c:if>
		</tr>
	</table>
</c:if>

<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>